<template>
    <div>
        <van-nav-bar title="列表页" left-text="返回" left-arrow @click-left="() => { $router.push('/home/fl') }" fixed />
        <div style="height: 45px;"></div>
        <div v-for="item in goods">
            <router-link :to="'/home/xq/'+item.goods_id">
                <van-card :price="item.goods_price" :title="item.goods_name"
                :thumb="item.goods_big_logo ? item.goods_big_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg'" />
            </router-link>
            

        </div>
    </div>
</template>

<script setup>
import { ref } from 'vue'
import { goodsApi } from '@/api/api'
let goods = ref([])
goodsApi().then(res => {
    console.log('列表数据', res)
    goods.value = res.data.message.goods
})
</script>

<style lang="scss" scoped></style>